<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>后台管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
    page. However, you can choose any other skin. Make sure you
    apply the skin class to the body tag so the changes take effect.
    -->
    <link rel="stylesheet" href="/dist/css/skins/skin-blue.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<#include "header.ftl" />
<#include "sidebar.ftl" />
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" id="app">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                订单管理
                <small>订单详情</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 订单管理</a></li>
                <li class="active">订单详情</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="invoice">
            <!-- info row -->
            <div class="row invoice-info">
                <div class="col-sm-4 invoice-col">
                    <b>客户信息</b><br>
                    <br>
                    <b>姓名:</b> ${(order.customerName)!}<br>
                    <b>注册手机号:</b> ${(order.cellPhoneNum)!}<br>
                </div>
                <!-- /.col -->
                <div class="col-sm-4 invoice-col">
                    <b>合同信息</b><br>
                    <br>
                    <b>房东姓名:</b> ${(order.landlord)!}<br>
                    <b>房东开户行:</b> ${(order.bank)!}<br>
                    <b>房东账号:</b> ${(order.account)!}
                </div>
                <!-- /.col -->
                <div class="col-sm-4 invoice-col">
                    <b>订单信息</b><br>
                    <br>
                    <b>订单ID:</b> ${(order.id)!}<br>
                    <b>房租金额:</b> ${(order.rentAmount)!}<br>
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->

            <!-- Form row -->
            <div class="row">
                <form id="orders" method="post" action="/orders/update">
                    <input type="hidden" id="orderId" name="orderId" value="${(order.id)!''}" />
                    <div id="status">
                        <label for="status" class="col-sm-2 control-label">状态:</label>
                        <div class="col-sm-10">
                            <select name="status" id="status" form="orders" value="${(order.status)!''}">
                                <option value="Process" <#if (((order.status)!'') == 'Process')>selected="selected"</#if> > 支付中 </option>
                                <option value="Paid" <#if (((order.status)!'') == 'Paid')>selected="selected"</#if> > 处理中 </option>
                                <option value="TransferSuccess" <#if (((order.status)!'') == 'TransferSuccess')>selected="selected"</#if> > 已到账 </option>
                                <option value="TransferFailed" <#if (((order.status)!'') == 'TransferFailed')>selected="selected"</#if> > 转账失败 </option>
                                <option value="TransferFailedRefund" <#if (((order.status)!'') == 'TransferFailedRefund')>selected="selected"</#if> > 转账失败已退款 </option>
                                <option value="RiskTrade" <#if (((order.status)!'') == 'RiskTrade')>selected="selected"</#if> > 风险交易 </option>
                                <option value="RiskTradeRefund" <#if (((order.status)!'') == 'RiskTradeRefund')>selected="selected"</#if> > 风险交易已退款 </option>
                            </select>
                        </div>
                    </div>
                    <p class="pull-right">
                        <input type="submit" class="btn btn-danger btn-lg" value="确认并返回" />
                        <a href="/orders" class="btn btn-info btn-lg" role="button">返回</a>
                    </p>
                </form>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

<#include "footer.ftl" />
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.0 -->
<script src="/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/dist/js/app.min.js"></script>

</body>
</html>